package com.intdemo;

import java.util.Date;

public class DateDemo {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date.toString()); //表示瞬时时间的字符串
        System.out.println(date.getTime());// 获取瞬时时间的毫秒值
        // date.setTime();

    }
}
